package com.ykdl.member.kid;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.widget.Toast;

import com.ykdl.member.base.QLog;
/**
 * 
 * 开发时，测试网络状态的，没有什么具体的功能
 *
 */
public class NetworkReceiver extends BroadcastReceiver {

    protected Context    mContext;

    @Override
    public void onReceive(Context context, Intent intent) {
 
    }

    public void showToast(String info, Object object) {
        if (object == null) {
        	QLog.debug("NetworkReceiver==", info+" is null");
            return;
        }
        Toast.makeText(mContext, info + " : " + object.toString(), Toast.LENGTH_LONG).show();
        QLog.debug("NetworkReceiver==", info + " : " + object.toString());
    }
} 